// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv, createServer } from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import AutoImport from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/unplugin-vue-components/dist/resolvers.js";
import zhCn from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/element-plus/es/locale/lang/zh-cn.mjs";
import path from "path";
import { createSvgIconsPlugin } from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import { viteMockServe } from "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/node_modules/vite-plugin-mock/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/Users/Konpoku_Youmu/Desktop/Vue3-Admin-Tamplate/Youmu-Project/vite.config.js";
var vite_config_default = defineConfig((command, mode) => {
  return {
    plugins: [
      vue(),
      vueJsx(),
      AutoImport({
        resolvers: [ElementPlusResolver()]
      }),
      Components({
        resolvers: [ElementPlusResolver()]
      }),
      // 挂载SVG图库配置
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      viteMockServe({
        localEnabled: command === "serve"
      })
    ],
    build: {
      module: "es2022"
      // 设置为允许使用 import.meta 的选项之一
    },
    resolve: {
      alias: {
        "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
      }
    },
    // scss全局变量的配置
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: '@import "./src/styles/variable.scss";'
        }
      }
    },
    server: {
      proxy: {
        "/api": {
          /* 获取数据的服务器地址设置 */
          target: "http://sph-api.atguigu.cn",
          // 是否需要代理跨域
          changeOrigin: true,
          //路径重写,因为我们真实路径中的浅醉是没有/api的,所以我们将其路径重写为空''
          rewrite: (path2) => path2.replace(/^\/api/, "")
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxLb25wb2t1X1lvdW11XFxcXERlc2t0b3BcXFxcVnVlMy1BZG1pbi1UYW1wbGF0ZVxcXFxZb3VtdS1Qcm9qZWN0XCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxLb25wb2t1X1lvdW11XFxcXERlc2t0b3BcXFxcVnVlMy1BZG1pbi1UYW1wbGF0ZVxcXFxZb3VtdS1Qcm9qZWN0XFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9Lb25wb2t1X1lvdW11L0Rlc2t0b3AvVnVlMy1BZG1pbi1UYW1wbGF0ZS9Zb3VtdS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